<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>

<?php include('scripts.php'); date_default_timezone_set('America/New_York'); ?>

<script>
$(function() {
    $("button, input:submit, input:button").button();
    $("#menu").accordion({
        active : <?php echo $sf_user->getAttribute(Globals::SESSION_MENU_IDX, 0) ?>,
        autoHeight:false,
        change: function(event, ui) {
            $.ajax({
                type : 'POST',
                url : "/home/updateMenuIdx",
                dataType : 'json',
                cache: false,
                data: {
                    menuIdx : $("#menu").accordion("option", "active")
                },
                success : function(data) {
                },
                error : function(XMLHttpRequest, textStatus, errorThrown) {
                    //alert("Your login attempt was not successful. Please try again.");
                }
            });
        }
    });

    setInterval(function() {
        refreshGoldSellPrice();
    }, <?php echo Globals::REFRESH_GOLD_INTEVAL; ?>);
    refreshGoldSellPrice();
});
function refreshGoldSellPrice(){
    $.ajax({
        type : 'POST',
        url : "/gold/fetchGoldPrice",
        dataType : 'json',
        cache: false,
        data: {
        },
        success : function(data) {
            $("#layoutSpanGoldPrice").html(data.goldSell);
        },
        error : function(XMLHttpRequest, textStatus, errorThrown) {
            alert("Your login attempt was not successful. Please try again.");
            window.location = "/home/login";
        }
    });
}
function openCertificateWindow(){
    var params  = 'width=891';
    params += ', height=637';
    params += ', top=0, left=0';
    //params += ', fullscreen=yes';
    //params += ', scrollbars=yes';

    newwin = window.open("/member/certificate",'cert', params);
    if (window.focus)
    {
        newwin.focus();
    }
}
</script>

<script type="text/javascript">

var currenttime = '<? print date("F d, Y H:i:s", time())?>' //PHP method of getting server date

var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
var serverdate=new Date(currenttime)

function padlength(what){
var output=(what.toString().length==1)? "0"+what : what
return output
}

function displaytime(){
serverdate.setSeconds(serverdate.getSeconds()+1)
var datestring=montharray[serverdate.getMonth()]+" "+padlength(serverdate.getDate())+", "+serverdate.getFullYear()
var timestring=padlength(serverdate.getHours())+":"+padlength(serverdate.getMinutes())+":"+padlength(serverdate.getSeconds())
document.getElementById("servertime").innerHTML=datestring+" "+timestring
}

window.onload=function(){
setInterval("displaytime()", 1000)
}

</script>

<link rel="shortcut icon" href="/favicon.ico" />

</head>
<body bgcolor="#150c03" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-1) -->
<table id="Table_01" width="1251" height="1501" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2" rowspan="6">
			<img src="/images/layout/Untitled-1_01.jpg" width="339" height="147" alt=""></td>
		<td colspan="4" rowspan="2">
			<img src="/images/layout/Untitled-1_02.jpg" width="600" height="64" alt=""></td>
		<td colspan="3"  width="311" height="42" alt="" background="/images/layout/Untitled-1_03.jpg" valign="top" align="right">

			<font face="arial" size="2" color="#ffffff" align="justify"> <b>
			<br /><?php echo __('Server Time') ?> : <span id="servertime"></span>
			</font>

			</td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="42" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2">
			<img src="/images/layout/Untitled-1_04.jpg" width="200" height="40" alt=""></td>
		<td colspan="2" rowspan="2">
			<img src="/images/layout/Untitled-1_05.jpg" width="111" height="40" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="22" alt=""></td>
	</tr>
	<tr>
		<td rowspan="4">
			<img src="/images/layout/Untitled-1_06.jpg" width="176" height="83" alt=""></td>
		<td rowspan="2" background="/images/layout/Untitled-1_07.jpg" width="251" height="50" alt="" valign="bottom">

			<font face="arial" size="2" color="#ffffff" align="justify"> <b>
			<br /><?php echo __('Current CPS price') ?>: $<?php echo number_format($sf_user->getAttribute(Globals::SESSION_CPS_PRICE),2); ?>

			</font>

			</td>
		<td colspan="2" rowspan="4">
			<img src="/images/layout/Untitled-1_08.jpg" width="173" height="83" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="18" alt=""></td>
	</tr>
	<tr>
		<td colspan="3" rowspan="2" background="/images/layout/Untitled-1_09.jpg" width="311" height="36" alt="" align="right">

			<font face="arial" size="2" color="#ffffff" align="justify"> <b>
			<br /><?php echo __('Shareholder ID')." ".$sf_user->getAttribute(Globals::SESSION_USERNAME); ?>
			</font>

			</td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="32" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2" background="/images/layout/Untitled-1_10.jpg" width="251" height="33" alt="" valign="top">

			<font face="arial" size="2" color="#ffffff" align="justify"> <b>
			<?php echo __('Gold Price').": $<span id='layoutSpanGoldPrice'>".number_format($sf_user->getAttribute(Globals::SESSION_GOLD_PRICE),4)."<span>"; ?>
            </font>

			</td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="4" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="/images/layout/Untitled-1_11.jpg" width="311" height="29" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="29" alt=""></td>
	</tr>
	<tr>
		<td colspan="5" background="/images/layout/Untitled-1_12.jpg" width="848" height="51" alt="" valign="top">

			<font face="arial" size="2" color="#000000" align="justify"> <b>
			<br /><?php echo __('Current Location').' : '.__($title)." >> ".__($title2); ?></font>

        </td>
		<td colspan="4" background="/images/layout/Untitled-1_13.jpg" width="402" height="51" alt="" valign="top">


			<font face="arial" size="2" color="#000000" align="justify"> <b>
			<br /><!-- for display CPS count down --></font>

			</td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="51" alt=""></td>
	</tr>
	<tr>
		<td colspan="9">
			<img src="/images/layout/Untitled-1_14.jpg" width="1250" height="24" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="24" alt=""></td>
	</tr>
	<tr>
		<td rowspan="2" background="/images/layout/Untitled-1_15.jpg" width="276" alt="" valign="top">
            <table cellpadding="3" cellspacing="3" width="100%">
                <tr>
                    <td>
                        <div id="menu">
                            <h5><a href="#"><?php echo __('Account Summary'); ?></a></h5>
                            <div>

                                <a href="/member/summary" title="Account Summary">

                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Summary'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Personal Profile'); ?></a></h3>
                            <div>
                                <a href="/member/viewProfile" title="<?php echo __('View Profile'); ?>">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('View Profile'); ?></a><br/>

                                <a href="/member/loginPassword" title="Change Login Password">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Change Password'); ?></a><br/>

                                <a href="/member/transactionPassword" title="Change Transaction Password">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Change Trx Password'); ?></a><br/>

                                <a href="/member/accountVerification" title="Account Verification">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Account Verification'); ?></a><br/>

                                <a href="javascript:openCertificateWindow();" title="Share Certificate">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('My Certificates'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Gold Trading'); ?></a></h3>
                            <div>
                                <a href="/gold/trading" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Gold Trading'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Business'); ?></a></h3>
                            <div>
                                <a href="/member/placePlacement" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Place New Shareholder'); ?></a><br/>

                                <a href="/member/reinvestCps" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Reinvest CPS'); ?></a><br/>

                                <a href="/member/purchasePin" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Pin Purchase'); ?></a><br/>

                                <a href="/member/transferPin" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Transfer Pin'); ?></a><br/>

                                <a href="/member/pinLog" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Pin Transaction Log'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Finance'); ?></a></h3>
                            <div>
                                <a href="/member/transferEcash" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Transfer E-Cash'); ?></a><br/>

                                <a href="/member/goldRedemption" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Gold Redemption'); ?></a><br/>

                                <a href="/member/goldWithdrawal" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Gold Withdrawal'); ?></a><br/>

                                <a href="/member/ecashWithdrawal" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('E-Cash Withdrawal'); ?></a><br/>

                                <a href="/member/ecashLog" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('E-Cash Log'); ?></a><br/>

                                <a href="/member/bonusDetails" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Bonus Details'); ?></a><br/>

                                <a href="/member/withdrawalStatus" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Withdrawal Status'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Bulletin'); ?></a></h3>
                            <div>
                                <a href="/member/enquiry" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Enquiry'); ?></a><br/>

                                <a href="/member/annoucement" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Annoucements'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Genealogy'); ?></a></h3>
                            <div>
                                <a href="/member/sponsorTree" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Sponsor'); ?></a><br/>

                                <a href="/member/placementTree" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Placement'); ?></a><br/>

                                <a href="/member/gap" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Global Auto Placement'); ?></a><br/>
                            </div>
                            <h3><a href="#"><?php echo __('Logout'); ?></a></h3>
                            <div>
                                <a href="/home/logout" title="Summary">
                                <img src="/images/common/mycomputer.png" style="padding-bottom: 4px; vertical-align: middle;" border="0">
                                &nbsp;<?php echo __('Logout'); ?></a><br/>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
			</td>
		<td colspan="7" background="/images/layout/Untitled-1_16.jpg" width="918" height="33" alt="" >

			<font face="arial" size="2" color="#ffffff" align="justify"> <b>
			<?php echo __($title2); ?></font>

			</td>
		<td rowspan="2">
			<img src="/images/layout/Untitled-1_17.jpg" width="56" height="1215" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="33" alt=""></td>
	</tr>
	<tr>
		<td colspan="7" background="/images/layout/Untitled-1_18.jpg" align="left" valign="top" alt="" >

			<font face="arial" size="2" align="justify">
			<br /><?php echo $sf_data->getRaw('sf_content') ?>
			</font>

			</td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="1182" alt=""></td>
	</tr>
	<tr>
		<td colspan="9">
			<img src="/images/layout/Untitled-1_19.jpg" width="1250" height="63" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="1" height="63" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="/images/layout/spacer.gif" width="276" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="63" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="176" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="251" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="82" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="91" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="200" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="55" height="1" alt=""></td>
		<td>
			<img src="/images/layout/spacer.gif" width="56" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<style type="text/css">
    a:link {
        text-decoration: none;
        font: 12px "Arial";
        font-weight: bold;
    }
    .ui-widget {
        font-family: Segoe UI,Arial,sans-serif;
        font-size: 0.9em;
    }
    
    .font {
        font-size: 14px;
        color: #f9c81e;
        font-family: arial;
    }

	.error-font {
        font-size: 14px;
        color: #990033;
        font-family: arial;
    }
</style>

</center>
</body>
</html>
